const { baseModel } = require('./baseModel')
const mongoose = require('mongoose')
const reaNameSchema = new mongoose.Schema({
    //用户
    user:{
        type:mongoose.Schema.Types.ObjectId,
        ref:'User',
        required:true,
    },
    //真实姓名
    reaName:{
        type:String,
        required:true
    },
    //证件类型
    cardType:{
        type:Number,
        //1为身份证 2为户口本
        required:true
    },
    //证件号码
    cardNumber:{
        type:String,
        required:true
    },
    //图片
    cardImg:{
        type:String,
        required:true
    },
    //状态
    status:{
       type:Number,
       // 1为审核中 2为审核通过 3为审核失败
       default:1,

    },
    ...baseModel
})

module.exports = reaNameSchema